/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 用户基本信息表
 * 
 * @author aeky
 */
@Entity
@Table(name = "T_SYS_USER_DETAIL")
public class UserDetail {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "DETAIL_ID", unique = true, nullable = false)
    private Long detailId;

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "USER_ID")
    private User user;

    @Column(name = "DEPT_TEL_NO")
    private String deptTelNo;

    @Column(name = "DEPT_FAX_NO")
    private String deptFaxNo;

    @Column(name = "HOME_TEL_NO")
    private String homeTelNo;

    @Column(name = "MOBILE_NO")
    private String mobileNo;

    @Column(name = "ADDRESS")
    private String address;

    @Column(name = "POST_NO")
    private String postNo;

    @Column(name = "EMAIL")
    private String email;

    @Column(name = "QICQ_NO")
    private String qicqNo;

    @Column(name = "MSN_NO")
    private String msnNo;

    /**
     * @return the detailId
     */
    public Long getDetailId() {
        return detailId;
    }

    /**
     * @param detailId the detailId to set
     */
    public void setDetailId(Long detailId) {
        this.detailId = detailId;
    }

    /**
     * @return the user
     */
    public User getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(User user) {
        this.user = user;
    }

    /**
     * @return the deptTelNo
     */
    public String getDeptTelNo() {
        return deptTelNo;
    }

    /**
     * @param deptTelNo the deptTelNo to set
     */
    public void setDeptTelNo(String deptTelNo) {
        this.deptTelNo = deptTelNo;
    }

    /**
     * @return the deptFaxNo
     */
    public String getDeptFaxNo() {
        return deptFaxNo;
    }

    /**
     * @param deptFaxNo the deptFaxNo to set
     */
    public void setDeptFaxNo(String deptFaxNo) {
        this.deptFaxNo = deptFaxNo;
    }

    /**
     * @return the homeTelNo
     */
    public String getHomeTelNo() {
        return homeTelNo;
    }

    /**
     * @param homeTelNo the homeTelNo to set
     */
    public void setHomeTelNo(String homeTelNo) {
        this.homeTelNo = homeTelNo;
    }

    /**
     * @return the mobileNo
     */
    public String getMobileNo() {
        return mobileNo;
    }

    /**
     * @param mobileNo the mobileNo to set
     */
    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the postNo
     */
    public String getPostNo() {
        return postNo;
    }

    /**
     * @param postNo the postNo to set
     */
    public void setPostNo(String postNo) {
        this.postNo = postNo;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the qicqNo
     */
    public String getQicqNo() {
        return qicqNo;
    }

    /**
     * @param qicqNo the qicqNo to set
     */
    public void setQicqNo(String qicqNo) {
        this.qicqNo = qicqNo;
    }

    /**
     * @return the msnNo
     */
    public String getMsnNo() {
        return msnNo;
    }

    /**
     * @param msnNo the msnNo to set
     */
    public void setMsnNo(String msnNo) {
        this.msnNo = msnNo;
    }

}
